4.3 Launching the MyID Client for Mac from the command line
To run the MyID Client for Mac from the command line, use:
open "./MyID Client for Mac.app"
You must provide a path; in the above example, the command is run from the Applications folder to which the MyID Client for Mac is installed.
4.3.1 Command line reference
You can use the following options on the command line using the --args option:
-
/un:<value> – The username to use. If the username has spaces, enclose the name in quotes; for example:
open "./MyID Client for Mac.app" --args /un:"My Name"
-
/jobid:<value> – Launch a task by its MyID job ID. You can specify only one task.
-
/opid:<value> – Launch an action by its MyID operation ID. You can currently use one of the following IDs:
-
110 – Change My Security Phrases
-
255 – Reset My PIN
-
202 – Change My PIN
-
5013 – Update My Device
-
-
/w – Starts the MyID Client for Mac in wizard mode. Wizard mode launches the MyID Client for Mac , allows you to complete one operation, then closes.
You can specify a jobid or an opid for the operation and the MyID Client for Mac carries out that task or action, then closes.
If you specify the /w parameter, but do not specify an opid for an action or a jobid for a task, the MyID Client for Mac opens, carries out the first available task for the specified user, then, once they have completed that task, closes the client.
-
/hidecancel (wizard mode only) – Removes the Cancel button from any page that displays it. This allows you to prevent users from canceling operations.
-
/server – Starts the MyID Client for Mac using a specific server. The server address must be listed in the AllowedServers list in the administrator configuration file; see section 7.2.1, Server location.
For example:
open "./MyID Client for Mac.app" --args /server:https://myid.example.com
-
/authcode – Used in combination with a /jobid and the /w wizard parameter. Starts the MyID Client for Mac to collect the task with the specified job ID and automatically provides the authentication code without the user having to type or paste it manually.
For example:
open "./MyID Client for Mac.app" --args /w /jobid:42 /authcode:123abc
This example launches the MyID Client for Mac to collect the task with job ID 42, then provides 123abc as the authentication code when prompted.